package com.hxf.service.meal;

import java.util.List;

import com.hxf.dto.RestaurantDto;
import com.hxf.dto.ReturnData;
import com.hxf.exception.DaoLevelException;
import com.hxf.exception.ServiceException;
import com.hxf.service.base.BaseService;

public interface RestaurantService extends BaseService {
	/**
	 * 根据用户ID 查询餐馆信息
	 * @param userId
	 * @return
	 * @throws ServiceException
	 */
	public List<RestaurantDto> findByRestaurant(Integer userId) throws ServiceException;
	
	
	/*
	 * 通过 ID 获取实体类
	 */
	public List<RestaurantDto> findByRestaurantId(Integer userId) throws ServiceException;
	/**
	 * 查询所有餐厅信息分页
	 * @param targetPage
	 * @param pageSize
	 * @return
	 * @throws ServiceException
	 */
	public ReturnData<RestaurantDto> findByRestaurantAllPage(int targetPage, int pageSize) throws ServiceException;
	
	/**
	 * 更新餐厅状态
	 * @param ids
	 * @param status
	 * @throws ServiceException
	 */
	public int updateRestaurant(String ids, Integer status) throws ServiceException;
	
	/**
	 * 是否推荐
	 * @param ids
	 * @param status
	 * @throws ServiceException
	 */
	public int updateRestaurantRecommend(String ids, boolean isRecommend) throws ServiceException;
	
	/*
	 * 餐厅管理 查询 餐厅名
	 */
	public ReturnData<RestaurantDto> findByRestaurantSelectName(RestaurantDto restDto,int targetPage,
			int pageSize) throws ServiceException;
	
	public List<RestaurantDto> findByRestaurantName(RestaurantDto restDto) throws ServiceException;
	
	/**
	 * 返回 ReturnData 数据
	 * @param restDto
	 * @return
	 * @throws ServiceException
	 */
	public ReturnData<RestaurantDto> returnDataRestaurant(Integer userId) throws ServiceException;
}
